﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BanmaytinhDAL;
using System.Data;
using System.Web;
using System.Data.SqlClient;
namespace BanmaytinhBOL
{
   public class LoaihangBOL
   {
       private static LoaihangInfo obj;
      
       private static LoaihangDAL db = new LoaihangDAL();

       public static LoaihangInfo Loaihang_GetById(string Maloai)
       {
           return db.Loaihang_GetById(Maloai);
       }
       

       public static List<LoaihangInfo> Loaihang_GetByAll()
        {
            return db.Loaihang_GetByAll();
        }

       public static bool Loaihang_Insert(LoaihangInfo data)
       {
           return db.Insert(data);
       }


       public static bool Loaihang_Update(LoaihangInfo data)
       {
           return db.Update(data);
       }


       public static bool Loaihang_Delete(string Maloai)
       {
           return db.Delete(Maloai);
       }


       
   }

}
